package com.mes.biz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * 销售单安装人员对象 biz_order_installer
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
@Data
public class BizOrderInstaller extends BaseEntity<BizOrderInstaller>
{
    private static final long serialVersionUID = 1L;

    /** 销售单 */
    @Excel(name = "销售单")
    @NotBlank(message = "销售单不允许为空")
    @LogField
    @FieldRemark(name = "销售单",field = "orderId")
    private String orderId;

    /** 人员 */
    @Excel(name = "人员")
    @NotBlank(message = "人员不允许为空")
    @LogField
    @FieldRemark(name = "人员",field = "userId")
    private String userId;

    /** 租户id */
    @Excel(name = "租户id")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

     @LogField
    @FieldRemark(name = "是否完成 0-已分配 1-已接收 2-已完成",field = "installerStatus")
    private String installerStatus;

    @LogField
    @FieldRemark(name = "类型 1-配送  2-安装",field = "installerType")
    private String installerType;

    private String installerUserName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date installDate;

    private List<BizOrderAttach> attachList;

    /**
     * 查询条件
     */
    private String condition;

    private Date startDate;

    private Date endDate;
}
